package com.fm.webrtc.websocket.message.transport;

import com.fm.mediasoup.sdp.Fingerprint;

public class Fingerprints {
    public String algorithm;
    public String value;

    @Override
    public String toString() {
        return "Fingerprints{" +
                "algorithm='" + algorithm + '\'' +
                ", value='" + value + '\'' +
                '}';
    }

    /**
     * 转换为sdp格式
     * @return
     */
    public  Fingerprint conversionSdpFingerPrint(){
        Fingerprint fingerprint = new Fingerprint();
        fingerprint.hash = this.value;
        fingerprint.type = this.algorithm;
        return fingerprint;
    }
}
